/*
 * @Date: 2022-05-23 14:21:41
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-05-23 14:55:04
 * @FilePath: \my-react-components\src\component\Select\Option.tsx
 * @Description: something
 */
import React, { memo, useContext } from "react";
import { SelectContext } from ".";
export interface OptionProps {
  value?: string | number;
  label?: string;
  children?: React.ReactNode;
}
const Option: React.FC<OptionProps> = memo(
  ({ value, label, children, ...restProps }) => {
    const context = useContext(SelectContext);
    return <li {...restProps}>{children}</li>;
  },
);
Option.displayName = "Option";
export default Option;
